package com.scan.converter.domain;

import java.io.Serializable;

/**
 * Created by 李明杰 on 2017/12/22.
 */
public class BaseResult implements Serializable {

    public static int SUCCESS=0;
    public static int FAIL=-1;
    public static int EXISTS=-2;
    public Integer code = SUCCESS;
    public String msg = "";

    public BaseResult() {

    }

    public BaseResult(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public BaseResult(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "code:" + code + ",msg:" + msg;
    }
}
